package com.xjscrm.console.mapper;

import com.xjscrm.console.dto.MerchatChildDeviceRelationQueryDTO;
import com.xjscrm.console.entity.MerchatChildDeviceRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 子账号与机器人中间表(MerchatChildDeviceRelation)表数据库访问层
 *
 * @author szl
 * @since 2024-03-12 13:43:21
 */
@Mapper
public interface MerchatChildDeviceRelationMapper extends CommonMapper<MerchatChildDeviceRelation> {

    List<MerchatChildDeviceRelation> select(@Param("condition") MerchatChildDeviceRelationQueryDTO param);

    List<MerchatChildDeviceRelation> selectByStaffId(@Param("merId") Long merId, @Param("staffId") Long staffId);

    List<MerchatChildDeviceRelation> selectListByDeviceUniqueId(@Param("merId") Long merId, @Param("deviceUniqueId") Long deviceUniqueId);

    List<Long> selectStaffIdListByDeviceUniqueId(@Param("merId") Long merId, @Param("deviceUniqueId") Long deviceUniqueId);
}

